package online.test1;

import java.util.ArrayList;
import java.util.StringJoiner;

/**
 * @Author 28021
 * @Date 2022/10/11
 */
public class ArrayListTest {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("ele1");
        list.add("ele2");
        list.add("ele3");
        ArrayList<Character> list2 = new ArrayList<>();
        list2.add('c');
        StringJoiner sj = new StringJoiner(",","{","}");
        sj.add("1").add("2").add("3");
        System.out.println(sj);
        System.out.println(list2);
        System.out.println(list);
    }
}
